package baltazar;

import java.awt.Color;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.SwingConstants;

public class ContentReport extends ContentArea {
    
    private JLabel testLabel = new JLabel("I'm Content Report Class");
	
	private ImageIcon redIcon = new ImageIcon("./images/red.png");
    
    private JButton addNew = new JButton("Dodaj  ", redIcon);
    private JButton open = new JButton("Wczytaj  ", redIcon);
    private JButton save = new JButton("Zapisz  ", redIcon);
    private JButton print = new JButton("Drukuj  ", redIcon);
    
    public ContentReport() {
		super();
        setLabel(testLabel);
		createMenu();
    }

	 private void createMenu() {
		for(int i=0; i<1; i++ ) {
		        sideMenu.add(new JLabel(" "));
            }
            
        addNew.setBackground(new Color(250, 250, 198));
        addNew.setHorizontalTextPosition(SwingConstants.LEFT);
		addNew.setHorizontalAlignment(SwingConstants.RIGHT);
		addNew.setBorderPainted(false);
        addNew.setFocusable(false);
        sideMenu.add(addNew);
            
		open.setBackground(new Color(250, 250, 198));
		open.setHorizontalTextPosition(SwingConstants.LEFT);
		open.setHorizontalAlignment(SwingConstants.RIGHT);
		open.setBorderPainted(false);
		open.setFocusable(false);
        sideMenu.add(open);
		  
		save.setBackground(new Color(250, 250, 198));
		save.setHorizontalTextPosition(SwingConstants.LEFT);
		save.setHorizontalAlignment(SwingConstants.RIGHT);
		save.setBorderPainted(false);
		save.setFocusable(false);
		sideMenu.add(save);     
		
		print.setBackground(new Color(250, 250, 198));
		print.setHorizontalTextPosition(SwingConstants.LEFT);
		print.setHorizontalAlignment(SwingConstants.RIGHT);
		print.setBorderPainted(false);
		print.setFocusable(false);
		sideMenu.add(print);      
    }
}
